package com.mikufufu.blog.model.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
public class ForgetPasswordParam {

    /**
     * 邮箱
     */
    @Email(message = "请输入正确的邮箱地址")
    private String email;

    /**
     * 验证码
     */
    @NotBlank( message = "验证码不能为空")
    private String code;

    /**
     * 新密码
     */
    @NotBlank( message = "新密码不能为空")
    private String newPassword;

    /**
     * 确认密码
     */
    @NotBlank( message = "确认密码不能为空")
    private String confirmPassword;
}
